package com.bao123.utils.result;

/**
 * 通用结果类
 * @author lbw
 */
public class GeneralResult<T> {
    private Integer code;
    private String message;
    private T body;

    public GeneralResult() {
    }

    public GeneralResult(Integer code, String message, T body) {
        this.code = code;
        this.message = message;
        this.body = body;
    }

    public GeneralResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
